package variables;

public class Variables {
	public static void main(String[] args) {
		int x = 24;
		byte b = 8;
		x = b;
		//b = x; // this won't work
		
		byte b1=-127, b2=127;

		String s1 = "first line";
		String s2 = s1;
		System.out.println(String.format("before change: s1=%s, s2=%s", s1, s2));
		s2 = "changed line";
		System.out.println(String.format("after change: s1=%s, s2=%s", s1, s2));
		String s3 = null;
		System.out.println(String.format("%s", s3));
		
		char c = '\u0061';
		System.out.println(c);
		
		Player mediaPLayerClassic = new Player("Bon Jovi","It's my life");
		Player winAMP = new Player("Metallica", "I Disappear");
		Player anotherPlayer = mediaPLayerClassic;
		
		mediaPLayerClassic.play();
		winAMP.play();
		anotherPlayer.play();
		
		anotherPlayer.artist = "My Darkest Days";
		mediaPLayerClassic.play();
		anotherPlayer.play();
	}
}
